import request from '@/utils/request'

// 获取分页数据
export const getSMSListApi = (data) =>
  request.post('/biz-microservice-energy/sms/template/list', data)
// 获取下拉框
export const getSMSSelectListApi = () => request.get('/core/dictionary/combo-item/list?dictType=SMS_TYPE')

// 保存数据
export const saveSMSListApi = (data) =>
  request.post('/biz-microservice-energy/sms/template/save', data)

// 删除数据
export const delSMSListApi = (key) =>
  request.post(`/biz-microservice-energy/sms/template/delete?key=${key}`)
  // 更新数据
export const updataSMSListApi = (data) =>
  request.post('/biz-microservice-energy/sms/template/update', data)